package com.spring.boot.springBoot.shiro.service;

import com.spring.boot.springBoot.shiro.Repository.UserInfoRepository;
import com.spring.boot.springBoot.shiro.entity.UserInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created by pactera on 2017/9/28.
 */
@Service
public class UserInfoService {

    @Autowired
    private UserInfoRepository userInfoRepository;


    public UserInfo findByUserName(String userName){
        return userInfoRepository.findByUserName(userName);
    }


}
